package dowm2;
public class Cat {
    protected String name;
    protected int age;
    protected String color;

    public Cat(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
    public void printCatInfo(){
        System.out.println("猫的名字："+name+"年龄"+age+"岁"+"颜色"+color);
    }
}

